﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
   public class EM_Library
    {
        ///图书借阅登记表
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ID { get; set; }

        /// <summary>
        /// 学号
        /// </summary>
        public int xuehao { get; set; }

        ///图书姓名，借阅人，结束日期，还书日期，书籍情况（完整，破碎，脏污）
        /// <summary>
        /// 图书姓名
        /// </summary>
        public string? Name { get; set; }
        /// <summary>
        /// 借阅人  
        /// </summary>
        public string? Bname { get; set; }
        /// <summary>
        /// 借书日期
        /// </summary>
        public DateTime End { get; set; }
        /// <summary>
        /// 还书日期 
        /// </summary>
        public DateTime Return{ get; set; }
        /// <summary>
        /// 书籍情况
        /// </summary>
        public string? Situation { get; set; }

        /// <summary>
        /// 是否借出 1:是 0：否
        /// </summary>
        public lendEnum lend { get; set; }

        public enum lendEnum 
        {
            是=1,
            否=0
        }
    }
}
